/**
 * 示例控制器
 */
class mainUIController extends Frame.MVC.Controller {
    view: mainUIView;
    constructor() {
        super();
        Frame.Message.addListener("1", this.testListener, this);
    }
    private testListener(...param) {
        Frame.debugConsole(this, ...param);
    }

    viewInit() {
        this.view.startBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.startBtn, this);
    }

    private startBtn($evt) {
        Frame.Message.dispatch("1", 4, 57, 8);

        Frame.debugConsole(this, "开始游戏", $evt);
        Frame.Game.runScene(SceneKey.game);
    }

}